/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Engine2D.graphics.particle;

import Engine2D.graphics.GLColour;
import Engine2D.graphics.GLSpriteSheet;

/**
 *
 * @author Garys
 */
public class GLParticleImplementation implements GLParticleInterface {

    /**
     * 
     */
    public final GLSpriteSheet image = GLSpriteSheet.getInstance();
    /**
     * 
     */
    public final float u = 32f;
    /**
     * 
     */
    public final float v = 480f;
    /**
     * 
     */
    public final int w = 8;
    /**
     * 
     */
    public final int h = 8;
   

    /**
     * 
     */
    public GLParticleImplementation() {
    }
    
    
    /**
     * 
     * @param x
     * @param y
     * @param alpha
     */
    @Override
    public void draw(int x, int y, float alpha) {
        image.draw(x, y,w,h, u, v, alpha);
    }
    
    /**
     * 
     * @param colour
     */
    @Override
    public void setColor(GLColour colour) {
        image.setColour(colour);
    }
}
